package com.yuyou.train.lesson.service;

import java.util.List;

import com.yuyou.train.service.api.lesson.dto.ResourceDetailDTO;
import com.yuyou.train.service.api.lesson.dto.ResourcePageDTO;
import com.yuyou.train.service.api.lesson.entity.LessonResourceRuleRelation;
import com.yuyou.train.service.api.lesson.entity.Resource;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;

public interface IResourceService {
    int deleteByPrimaryKey(String id);
    
    ResBoolSimpleInfo<String> delRes(String id);
    
    int insert(Resource record);
    
    ResBoolSimpleInfo<String> addOrUpdateRes(Resource record);

    ResourceDetailDTO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Resource record);

    List<ResourcePageDTO> findResPageList(Pagination<ResourcePageDTO> p);
    
    int findResPageCount(Pagination<ResourcePageDTO> p);
    
    List<Resource> findResourceByExamId(String examId);

	ResBoolSimpleInfo<String> hasLessonRel(String id);
    
//    ResBoolSimpleInfo<String> isLessonUse(String id,List<LessonResourceRuleRelation> listRel);
    
}